<li class="dropdown hover cart"><a href="<?php echo $cart; ?>"><i class="icon-shopping-cart"></i> <span id="cart-total"><?php echo $text_items; ?></span> <i class="icon-arrow-down"></i></a>
  <ul class="dropdown-menu topcart">
    <li>
      <?php if ($products || $vouchers) { ?>
      <table>
        <tbody>
        <?php foreach ($products as $product) { ?>
        <tr>
           <td class="image"><?php if ($product['thumb']) { ?>
            <a href="<?php echo $product['href']; ?>"><img height="50" width="50" src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" title="<?php echo $product['name']; ?>" /></a>
            <?php } ?></td>
            <td class="name"><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a></td>
            <td class="quantity">x&nbsp;<?php echo $product['quantity']; ?></td>
            <td class="total"><?php echo $product['total']; ?></td>
            <td class="remove"><i style="cursor:pointer;" class="icon-remove" onclick="(getURLVar('route') == 'checkout/cart' || getURLVar('route') == 'checkout/checkout') ? location = 'index.php?route=checkout/cart&remove=<?php echo $product['key']; ?>' : $('.cart').load('index.php?route=module/cart&remove=<?php echo $product['key']; ?>' + ' .cart > *'); $('#tg_bistro_cart').load('index.php?route=module/tg_bistro_cart');"></i></td>
        </tr>
        <?php } ?>
        <?php foreach ($vouchers as $voucher) { ?>
        <tr>
          <td class="image"></td>
          <td class="name"><?php echo $voucher['description']; ?></td>
          <td class="quantity">x&nbsp;1</td>
          <td class="total"><?php echo $voucher['amount']; ?></td>
          <td class="remove"><i style="cursor:pointer;" class="icon-remove" src="catalog/view/theme/bistro/image/remove-tg.png" alt="<?php echo $button_remove; ?>" title="<?php echo $button_remove; ?>" onclick="(getURLVar('route') == 'checkout/cart' || getURLVar('route') == 'checkout/checkout') ? location = 'index.php?route=checkout/cart&remove=<?php echo $voucher['key']; ?>' : $('.cart').load('index.php?route=module/cart&remove=<?php echo $voucher['key']; ?>' + ' .cart > *'); $('#tg_bistro_cart').load('index.php?route=module/tg_bistro_cart');"></i></td>
        </tr>
        <?php } ?>
        </tbody>
      </table>
      <table>
        <tbody>
         <table>
          <?php foreach ($totals as $total) { ?>
          <tr>
            <td class="textright"><b><?php echo $total['title']; ?>:</b></td>
            <td class="textright"><?php echo $total['text']; ?></td>
          </tr>
          <?php } ?>
        </tbody>
      </table> 
      <div class="well pull-right">
        <a href="<?php echo $checkout; ?>" class="btn btn-general"><?php echo $text_checkout; ?></a>
      </div>
      <?php } else { ?>
      <div class="well"><?php echo $text_empty; ?></div>
      <?php } ?>
    </li>
  </ul>
</li>
